package com.lintf.devdemo.error;

/**
 * @ system:Window
 * @ author:lin tingfeng
 * @ data:2022/11/04-13:56
 * @ package_name:com.lintf.devdemo.error
 * @ project_name:DevDemo
 * @ desc:自定义异常类
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * 错误状态码
     */
    protected Integer errorCode;

    /**
     * 错误提示
     */
    protected String errorMsg;

    public BusinessException() {
    }

    public BusinessException(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
